python input with space

46

python input with space -

In []:
list(map(int, input().split()))

Input:
1 2 3 4 5

Out[]:
[1, 2, 3, 4, 5]

Comments

Submit
0 Comments